package com.wing.productionPlan.model.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 计件工资单
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ord_production_piece_rate")
public class ProductionPieceRate extends BaseEntity<ProductionPieceRate> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * day
     */
    private Integer day;

    /**
     * no
     */
    private Integer no;

    /**
     * 企业编号
     */
    private String enterpriseCode;

    /**
     * 计件工资单编号
     */
    private String code;

    /**
     * 所属月份
     */
    private Integer month;

    /**
     * 报工单数
     */
    private Integer workQuantity;

    /**
     * 合格工资
     */
    private BigDecimal qualifiedSalary;

    /**
     * 不合格工资
     */
    private BigDecimal unqualifiedSalary;

    /**
     * 报废罚款
     */
    private BigDecimal scrapPenalty;

    /**
     * 计件金额
     */
    private BigDecimal pieceRateAmount;

    /**
     * 0 待确认;1 已确认;2 待结算;3 已结算
     */
    private Integer status;

    /**
    * 员工确认时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime empConfirmTime;

    /**
    * 财务确认时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime financeConfirmTime;

    /**
    * 结算时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime settlementTime;

    /**
     * 报工人id
     */
    private Long theWorkOrderPeople;

    /**
     * 报工人
     */
    private String theWorkOrderPeopleName;
}
